package com.chuanyin.mp3player.process;

import android.os.Handler;
import android.os.Message;

public class PlayerHandler {
	
	private HandlerRun mHandlerRun;
	private Handler mHandler = new Handler()
	{

		@Override
		public void handleMessage(Message msg)
		{
			if (mHandlerRun != null)
				mHandlerRun.invoke();
			super.handleMessage(msg);
		}

	};


	public void run(HandlerRun handlerRun)
	{
		 mHandlerRun = handlerRun;
		 mHandler.sendEmptyMessage(1);
	
	}

}
